package com.lennon.eoi.executors.export;

import java.io.OutputStream;

import com.lennon.eoi.executors.query.EOIQueryList;


/**
 * 利用桥接模式将查询数据接口与导出分开。
 * 
 * @author lennon
 *
 * @param <T> 查询的queryvo
 * @param <E> 查询结果vo
 */
public abstract class AbstractEOIHandler<T, E>{

    protected T queryParamObject;
    protected EOIQueryList<T, E> eoiQueryList;
    
    public AbstractEOIHandler(EOIQueryList<T, E> eoiQueryList, T queryParamObject) {
        this.eoiQueryList = eoiQueryList;
        this.queryParamObject = queryParamObject;
    }
    
    public abstract void handler(OutputStream outputStream);
}
